#include<iostream>
#include <vector>

int main()
{
	const int n = 10;
    int x[n];
    std::cout << "nermuceq hajordakanutyun:\n";
    for ( int i = 0; i < n; ++i ) {
		std::cout << "x[" << i << "]= "; 
        std::cin >> x[i];
    }
	std::cout << "\n";
	std::vector< std::vector<int> > v;
	std::vector<int> temp_vector;
	std::vector<int> vec;
	for(int i = 0;i < n;++i) {
		if( x[i] < x[i+1] ) {
					temp_vector.push_back(x[i]);
		} else {
			temp_vector.push_back(x[i]);
			vec.push_back(temp_vector.size());
			v.push_back(temp_vector);
			temp_vector.clear();
		}
	}
	std::cout << "\n";
	int max = vec[0];
	int index = 0;
	for(int i = 1;i < vec.size();++i) {
		if(vec[i] > max) {
			max = vec[i];
			index = i;
		}
	}
	for(int i = 0;i < v.size();++i) {
		for(int j = 0;j < v[i].size();++j) {
			if(i == index) {
				std::cout << v[i][j] << " ";
			}
		}
		std::cout << "\n";
	}
	std::cout << "\n";
	return 0;
}